//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.cloud.logger.zchain.spring.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("Zchain.Properties")
public class ZchainProperties {
    private String baseUrl = "http://localhost:2001/";
    private ZchainProperties.Project project = new ZchainProperties.Project();
    private ZchainProperties.Code code = new ZchainProperties.Code();

    public ZchainProperties() {
    }

    public String getBaseUrl() {
        return this.baseUrl;
    }

    public ZchainProperties.Project getProject() {
        return this.project;
    }

    public ZchainProperties.Code getCode() {
        return this.code;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public void setProject(ZchainProperties.Project project) {
        this.project = project;
    }

    public void setCode(ZchainProperties.Code code) {
        this.code = code;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ZchainProperties)) {
            return false;
        } else {
            ZchainProperties other = (ZchainProperties)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$baseUrl = this.getBaseUrl();
                    Object other$baseUrl = other.getBaseUrl();
                    if (this$baseUrl == null) {
                        if (other$baseUrl == null) {
                            break label47;
                        }
                    } else if (this$baseUrl.equals(other$baseUrl)) {
                        break label47;
                    }

                    return false;
                }

                Object this$project = this.getProject();
                Object other$project = other.getProject();
                if (this$project == null) {
                    if (other$project != null) {
                        return false;
                    }
                } else if (!this$project.equals(other$project)) {
                    return false;
                }

                Object this$code = this.getCode();
                Object other$code = other.getCode();
                if (this$code == null) {
                    if (other$code != null) {
                        return false;
                    }
                } else if (!this$code.equals(other$code)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ZchainProperties;
    }

    public int hashCode() {
        //int PRIME = true;
        int result = 1;
        Object $baseUrl = this.getBaseUrl();
         result = result * 59 + ($baseUrl == null ? 43 : $baseUrl.hashCode());
        Object $project = this.getProject();
        result = result * 59 + ($project == null ? 43 : $project.hashCode());
        Object $code = this.getCode();
        result = result * 59 + ($code == null ? 43 : $code.hashCode());
        return result;
    }

    public String toString() {
        return "ZchainProperties(baseUrl=" + this.getBaseUrl() + ", project=" + this.getProject() + ", code=" + this.getCode() + ")";
    }

    public static class Code {
        private String name = "errCode";
        private String success = "8200,8300,200";
        private String error = "8500,500";

        public Code() {
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSuccess() {
            return this.success;
        }

        public void setSuccess(String success) {
            this.success = success;
        }

        public String getError() {
            return this.error;
        }

        public void setError(String error) {
            this.error = error;
        }
    }

    public static class Project {
        private String scenic = "zchain_scenic";
        private String name = "zchain_project";

        public Project() {
        }

        public String getScenic() {
            return this.scenic;
        }

        public void setScenic(String scenic) {
            this.scenic = scenic;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
